/**
 * Yolema.com Inc.
 * Copyright (c) 2011-2012 All Rights Reserved.
 */
package org.grayrabbit.pay.utils;

import java.net.URISyntaxException;

/**
 * 文件操作的工具类
 * 
 * @author wy
 * @version $Id: FileUtil.java, v 0.1 2012-6-1 下午1:22:18 wy Exp $
 */
public class FileUtil {

    /**
     * 获取当前class文件路径
     * 
     * @return
     */
    public static String getClassPath() {
        try {
            return Thread.currentThread().getContextClassLoader().getResource("").toURI().getPath();
        } catch (URISyntaxException e) {
            return "";
        }
    }

}
